using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr
{
    /// <summary>
    /// 体检批次表
    /// 用于记录公司/工厂组织的体检活动信息，如年度体检、专项体检等
    /// </summary>
    public class SysPersonMedicalBatche : BasePoco
    {
        [Required]
        [Display(Name = "批次名称", Description = "本次体检批次的名称，如2025年度体检", GroupName = "体检批次信息")]
        [StringLength(128)]
        public string BatchName { get; set; }

        [Display(Name = "体检类型", Description = "体检类型：年度体检/专项体检等", GroupName = "体检批次信息")]
        [StringLength(64)]
        public string MedicalType { get; set; }

        [Display(Name = "体检医院", Description = "体检医院名称", GroupName = "体检批次信息")]
        [StringLength(128)]
        public string Hospital { get; set; }

        [Display(Name = "体检日期", Description = "体检日期或起止日期", GroupName = "体检批次信息")]
        public DateTime? MedicalDate { get; set; }

        [Display(Name = "备注", Description = "补充说明", GroupName = "体检批次信息")]
        [StringLength(256)]
        public string Remark { get; set; }
        
        [Display(Name = "员工体检表")] public virtual ICollection<SysPersonMedical> PersonMedicals  { get; set; }
    }
}